package com.zhongtengxin.zhanzhao.beas.titlebar

import android.graphics.Color
import android.graphics.drawable.Drawable
import android.view.View
import me.zhanghai.android.materialprogressbar.ShowBackgroundDrawable

/**
 * user: luona
 * date: 2017/7/27.
 * description:titlebar的左右菜单，当添加多项时，需要分配不同的index，菜单按index从小到大的顺序排列（不必等差递增）
 */
class MenuItem(var id: Int? = 0,
               var index: Int = 0, //顺序
               var backgroundColor: Int = Color.BLUE,
               var backgroundDrawable: Drawable? = null,
               var title: String? = "",
               var titleResId: Int? = 0,
               var textColor: Int = Color.BLACK,
               var textSize: Int = 16,
               var icon: Drawable? = null,
               var iconResId: Int? = 0,
               var iconUrl: String? = "",
               var menuWidth: Float? = null,
               var menuHeight: Float? = null,
               var onClickListener: View.OnClickListener) {
    companion object {
        val TYPE_TEXT = 0
        val TYPE_ICON = 1
    }
}